package com.lmn.zipkin_server1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableEurekaClient
@SpringBootApplication
public class ZipkinRabbitmqServer1Application {

    private static final Logger LOGGER = LoggerFactory.getLogger(ZipkinRabbitmqServer1Application.class);

    public static void main(String[] args) {
        SpringApplication.run(ZipkinRabbitmqServer1Application.class, args);
        LOGGER.info("ZipkinServer1 启动成功");
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
